<?php defined('BASEPATH') OR exit('No direct script access allowed');

class Migration_Modify_ci_post extends CI_Migration {

  public function up()
  {

    $fields['pos_lat'] = array(
                              'type'        => 'DOUBLE',
                              'null'        => TRUE
                            );
    $fields['pos_lng'] = array(
                              'type'        => 'DOUBLE',
                              'null'        => TRUE
                            );
   
    $this->dbforge->add_column('ci_post', $fields);
  }

  public function down()
  {
    $this->dbforge->drop_column('ci_post', 'pos_lat');
    $this->dbforge->drop_column('ci_post', 'post_lng');
  }
}
